from PyQt5.QtCore import QStringListModel
from PyQt5.Qt import QCompleter
from PyQt5.Qt import Qt
from PyQt5.QtWidgets import QWidget
from PyQt5.QtWidgets import QAbstractItemView
import json
from view.UnpackView import Ui_UnpackView


class IPADump(QWidget, Ui_UnpackView):
    def __init__(self, frida_manager, log_out):
        super(IPADump, self).__init__()
        self.setupUi(self)
        self.setLayout(self.verticalLayout)
        self.frida_manager = frida_manager
        # self.log_out = log_out
        # self.pb_unpack.setText('砸壳')

    def on_message(self, message, data):
        if message['type'] == 'send':
            text = message['payload']
            print(text)
        else:
            print(message)